﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/CommonPages/MasterPageBackEnd.master" AutoEventWireup="true" CodeFile="ManagerHome.aspx.cs" Inherits="Pages_ManagerPages_ManagerHome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="block">
        <h2>Pesonal Info</h2>
        <asp:Label ID="lblUserManager" runat="server" ForeColor="Red"/>
        <ul>
            <li><i class="fa fa-angle-right"></i>Change Password</li>
            <li><i class="fa fa-angle-right"></i>Update Info</li>
        </ul>
    </div>
    <div class="block">
        <h2>PAGE</h2>
        <ul id="content-box-tabs">
            <li><i class="fa fa-angle-right"></i>Students
                <ul class="managerOption">
                    <li onclick="displayBlock('studentList')"><i class="fa fa-angle-right"></i>Search</li>
                    <li onclick="displayBlock('addStudent')"><i class="fa fa-angle-right"></i>Add</li>
                </ul>
            </li>
            <li><i class="fa fa-angle-right"></i>Staff
                <ul class="managerOption">
                     <li onclick="displayBlock('staffList')"><i class="fa fa-angle-right"></i>Search</li>
                     <li onclick="displayBlock('addStaff')"><i class="fa fa-angle-right"></i>Add</li>
                </ul>
             </li>
            <li><i class="fa fa-angle-right"></i>Competition
                <ul class="managerOption">
                    <li onclick="displayBlock('competitionList')"><i class="fa fa-angle-right"></i>Search</li>
                    <li onclick="displayBlock('addCompetition')"><i class="fa fa-angle-right"></i>Add</li>
                </ul>
            </li>
        </ul>
    </div>
    </label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="studentList">
                 <h4>Student List</h4>
                 <asp:Label ID="Label1" runat="server" Text="Name of Student: "></asp:Label>
                 <asp:TextBox ID="txtSeachStudent" runat="server" ></asp:TextBox>
                 <asp:Button  ID="btnSeachStudent" runat="server" Text="Search" 
                     onclick="btnSeachStudent_Click"/>
                 <asp:Button  ID="btnDisplayAllStudent" runat="server" 
                     Text="Display All Students" onclick="btnDisplayAllStudent_Click"/>
                 <asp:GridView ID="grvStudent" runat="server" 
                                AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="studentId" 
                                PageSize="3" ForeColor="#FF9933" 
                                Width="685px" onrowdatabound="grvStudent_RowDataBound">
                      <Columns>
                           <asp:BoundField DataField="studentId" HeaderText="Id">
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="userName" HeaderText="User Name" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="pass" HeaderText="Password" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="fullName" HeaderText="Full Name" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="address" HeaderText="Address" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="email" HeaderText="Email" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="phoneNo" HeaderText="Phone No" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="major" HeaderText="Major" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                           <asp:BoundField DataField="class" HeaderText="Class" >
                           <HeaderStyle ForeColor="Red" />
                           </asp:BoundField>
                      </Columns>
                 </asp:GridView>
            </div>
            <div id="addStudent">
            <div class="updateStudent">  
            <h4>Student</h4>
            <table class="tableStudent">
                <tr>
                    <td>
                        <asp:Label ID="lblUsername" runat="server" Text="User Name :"></asp:Label>                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblPass" runat="server" Text="Pass :"></asp:Label>                                                
                    </td>
                    <td>
                        <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>     
                <tr>
                    <td>
                         <asp:Label ID="lblFullName" runat="server" Text="Full name :"></asp:Label>                            
                        
                    </td>
                    <td>
                        <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>                                                  
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblAdress" runat="server" Text="Address :"></asp:Label>                            
                    </td>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server" ClientIDMode="Static"></asp:TextBox>                        
                    </td>
                </tr>
            </table>
            <table class="tableStudent">
                <tr>
                    <td>
                        <asp:Label  ID="lblEmail" runat="server" Text="Email :"></asp:Label>
                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtEmail" runat="server"></asp:TextBox>                         
                    </td>
                </tr>
                <tr>
                    <td>
                    <asp:Label  ID="lblPhone" runat ="server" Text="Phone :"></asp:Label>                            
                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtPhone" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMajor" runat="server" Text="Major :"></asp:Label>                                                
                    </td>
                    <td>
                        <asp:TextBox ID="txtMajor" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblClass" runat="server" Text="Class :"></asp:Label>                                                
                    </td>
                    <td >
                        <asp:TextBox ID="txtClass" runat="server"></asp:TextBox>                       
                    </td>
                </tr>             
                <tr>
                    <td>
                    </td>
                    <td>
                    <asp:Button ID="btnAddStudent" runat="server" Text="Add" 
                            ClientIDMode="Static" OnClick="btnAddStudent_Click"/>
                    </td>
                </tr>
            </table>
            </div></div>
            <div id="staffList">
                <h4>Staff List</h4>
                <asp:Label ID="Label2" runat="server" Text="Name of Staff: "></asp:Label>
                <asp:TextBox ID="txtSeachStaff" runat="server" ></asp:TextBox>
                <asp:Button  ID="btnSeachStaff" runat="server" Text="Search" 
                    onclick="btnSeachStaff_Click"/>
                <asp:Button  ID="btnDisplayAllStaffs" runat="server" 
                     Text="Display All Staffs" onclick="btnDisplayAllStaffs_Click"/>
                <asp:GridView ID="grvStaff" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="staffId" ForeColor="#FF9933" Width="682px" 
                    onrowdatabound="grvStaff_RowDataBound">
                     <Columns>
                         <asp:BoundField DataField="staffId" HeaderText="Id">
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="userName" HeaderText="User Name" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="pass" HeaderText="Password" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="fullName" HeaderText="Full Name" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="address" HeaderText="Address" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="email" HeaderText="Email" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="phoneNo" HeaderText="Phone No" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="major" HeaderText="Major" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                     </Columns>
                </asp:GridView>
            </div>
            <div id="addStaff">
             <div class="updateStudent">  
            <h4>Staff</h4>
            <table class="tableStudent">
                <tr>
                    <td>
                        <asp:Label ID="lblUserNameStaff" runat="server" Text="User Name :"></asp:Label>                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtUserNameStaff" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblPassStaff" runat="server" Text="Pass :"></asp:Label>                                                
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassStaff" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>     
                <tr>
                    <td>
                         <asp:Label ID="lblFullNameStaff" runat="server" Text="Full name :"></asp:Label>                            
                        
                    </td>
                    <td>
                        <asp:TextBox ID="txtFullNameStaff" runat="server"></asp:TextBox>                                                  
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblAddressStaff" runat="server" Text="Address :"></asp:Label>                            
                    </td>
                    <td>
                        <asp:TextBox ID="txtAddressStaff" runat="server" ClientIDMode="Static"></asp:TextBox>                        
                    </td>
                </tr>
            </table>
            <table class="tableStudent">
                <tr>
                    <td>
                        <asp:Label  ID="lblEmailStaff" runat="server" Text="Email :"></asp:Label>
                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtEmailStaff" runat="server"></asp:TextBox>                         
                    </td>
                </tr>
                <tr>
                    <td>
                    <asp:Label  ID="lblPhoneStaff" runat ="server" Text="Phone :"></asp:Label>                            
                        
                    </td>
                    <td>
                        <asp:TextBox  ID="txtPhoneStaff" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMajorStaff" runat="server" Text="Major :"></asp:Label>                                                
                    </td>
                    <td>
                        <asp:TextBox ID="txtMajorStaff" runat="server"></asp:TextBox>
                    </td>
                </tr>     
                <tr>
                    <td>
                    </td>
                    <td>
                    <asp:Button ID="btnAddStaff" runat="server" Text="Add" 
                            ClientIDMode="Static" OnClick="btnAddStaff_Click"/>
                    </td>
                </tr>
            </table>
            </div></div>
            <div id="competitionList">
                <h4>Competition List</h4>
                <asp:Label ID="Label3" runat="server" Text="Name of Competition: "></asp:Label>
                <asp:TextBox ID="txtSeachCompetition" runat="server" ></asp:TextBox>
                <asp:Button  ID="btnSeachCompetition" runat="server" Text="Search" 
                    onclick="btnSeachCompetition_Click"/>
                <asp:Button  ID="btnDisplayAllCompetition" runat="server" 
                    Text="Display All Competition" onclick="btnDisplayAllCompetition_Click" />
                <asp:GridView ID="grvCompetition" runat="server" AutoGenerateColumns="False" 
                                AllowPaging="True" DataKeyNames="comId" AllowSorting="True" 
                                PageSize="3" ForeColor="#FF9933" 
                                Width="679px" onrowdatabound="grvCompetition_RowDataBound" >
                     <Columns>
                         <asp:BoundField DataField="comId" HeaderText="Id">
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="name" HeaderText="Name" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="awards" HeaderText="Awards" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="postDate" HeaderText="Post Date" 
                                        DataFormatString="{0:d}" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="startDate" HeaderText="Start Date" 
                                        DataFormatString="{0:d}" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="endDate" HeaderText="End Date" 
                                        DataFormatString="{0:d}" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="description" HeaderText="Description" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="quotation" HeaderText="Quotation" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="userName" HeaderText="Manager" >
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                         <asp:BoundField DataField="NumberOfStaff" HeaderText="Number Of Staffs">
                         <HeaderStyle ForeColor="Red" />
                         </asp:BoundField>
                     </Columns>            
                </asp:GridView>
            </div>
            <div id="addCompetition">
                <h4>Add Competition</h4>
                <table>
                    <tr>
                        <td>
                            Name:                       
                        </td>
                        <td>
                            <asp:TextBox  ID="txtCompetitionName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Start Date:
                        </td>
                        <td>
                            <asp:TextBox  ID="txtCompetitionStartDate" CssClass="datetimePicker" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            End Date:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionEndDate" CssClass="datetimePicker" runat="server"></asp:TextBox>                                                  
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Description:                           
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionDescription" runat="server" TextMode="MultiLine" 
                                ClientIDMode="Static"></asp:TextBox>                        
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Award:
                        </td>
                        <td>
                            <asp:TextBox  ID="txtCompetitionAward" runat="server"></asp:TextBox>                         
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Manager:
                        </td>
                        <td>
                            <asp:DropDownList ID="listManager" runat="server" ClientIDMode="Static" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>                    
                        <td>
                            Quotation:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompetitionQuotation" runat="server" TextMode="MultiLine" 
                                ClientIDMode="Static"></asp:TextBox>   
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnAddCompetition" runat="server" Text="Add Competition"/>
                        </td>
                        <td >
                            <asp:Button ID="btnClear" runat="server" Text="Clear"/>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

